package com.tx.review.enumuation;

/**
 * 菜单
*/
public enum Meal {
    COFFEE(Food.Coffee.class)
    ;

    Food [] foods;

    private Meal(Class<? extends Food> clazz){
         foods = clazz.getEnumConstants();
    }
}

/**
 * 食物
 */
interface Food{
    //枚举实现接口，用来统一管理
    enum Coffee implements Food{
        LATTE,TEA
    }
}
